package com.whsxt.sys.mapper;

import com.whsxt.sys.domain.Role;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 贺炯
 * @since 2019-09-24
 */
public interface RoleMapper extends BaseMapper<Role> {

	List<Integer> selectPidByRid(Integer rid);

	void deletePidByRid(Integer rid);

	void insertPidByRid(@Param("rid")Integer rid,@Param("pid")Integer id);

	void savePid(@Param("rid")Integer rid, @Param("pid")Integer[] pid);

	List<Integer> selectRidByUid(@Param("uid")Integer id);

	void deleteUidRidByUid(Integer uid);

	void insertUidRid(@Param("uid")Integer uid, @Param("rid")Integer[] rid);

	List<Integer> ListPidByRid(@Param("rid")List<Integer> roleList);

}
